package com.example.aop.proxy;

/**
 * ClassName: HouseProxy
 * Package: IntelliJ IDEA
 * Description:
 *
 * @Author 谷京京
 * @Create 2024/1/15 16:01
 * @Version 1.0
 */
//public class HouseProxy implements HouseSubject{
//    private HouseSubject houseSubject;
//    public HouseProxy(HouseSubject houseSubject) {
//        this.houseSubject = houseSubject;
//    }
//    @Override
//    public void rentHouse() {
//        System.out.println("开始代理");
//        houseSubject.rentHouse();
//        System.out.println("结束代理");
//    }
//
//    @Override
//    public void saleHouse() {
//        System.out.println("开始代理");
//        houseSubject.rentHouse();
//        System.out.println("结束代理");
//    }
//}
